package pers.zb.cloud.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Import;
import pers.zb.cloud.gateway.handler.routeconfig.RouteFallbackHandlerConfig;


@Import({RouteFallbackHandlerConfig.class}) //为每一个API服务设置异常容错，返回通用的异常错误信息
@EnableZuulProxy
@SpringBootApplication
public class GatewayApplication {

    public static void main(String[] args) {
        SpringApplication.run(GatewayApplication.class, args);
    }
}
